import { request } from '@boeyo/portal';

//设备类型列表
export const getAlarmTypeList = async (params) => {
  return {
    rows: [
      { remark: '12333', alarmType: '1', status: '0' },
      { remark: '3333', alarmType: '0', status: '1' },
      { remark: '3333', alarmType: '2', status: '0' },
      { remark: '3333', alarmType: '0', status: '0' },
    ],
    code: 200,
    message: 'success',
  };
  return await request({
    url: 'deviceType/list',
    method: 'GET',
    params,
  });
};
export const addAlarmType = async (params) => {
  return {
    rows: [],
    code: 200,
    message: '新增成功',
  };
  return await request({
    url: 'deviceType/list',
    method: 'GET',
    params,
  });
};
export const updateAlarmType = async (params) => {
  return {
    rows: [],
    code: 200,
    message: '更新成功',
  };
  return await request({
    url: 'deviceType/list',
    method: 'GET',
    params,
  });
};
